function makeArray() {
		for (i = 0; i<makeArray.arguments.length; i++)
		this[i + 1] = makeArray.arguments[i];
}

function showClock()
{
		var clock=new Date();
		var hours=clock.getHours();
		var minutes=clock.getMinutes();
		var seconds=clock.getSeconds();
		var temp;
		var months = new makeArray('January','February','March','April','May',
		'June','July','August','September','October','November','December');
		var date = new Date();
		var day = date.getDate();
		var month = date.getMonth() + 1;
		var yy = date.getYear();
		var year = (yy < 1000) ? yy + 1900 : yy;
// for a nice disply we'll add a zero before the numbers between 0 and 9
			if (hours<10){
			hours="0" + hours;
			}
			if (minutes<10){
			minutes="0" + minutes;
			}
			if (seconds<10){
			seconds="0" + seconds;
			}
			temp = (hours >= 12) ? " P.M." : " A.M.";

			hours %= 12;
		document.getElementById('showText').innerHTML="Today is "+ months[month] + " " + day + ", " + year+"  "+ hours +":"+minutes+":"+seconds+" "+temp;
		t=setTimeout('showClock()',500);

}






var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 














function validateInformation(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				var mobileNum = /^[0-9\+]{6,}$/;//ALL NUMBER CHECKING
				var stringInput = /^[a-zA-Z0-9\s.]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				
				with(Form){
					if(studNum1.value != ""&& studNum2.value != ""&& studNum1.value.length == 4 && studNum2.value.length == 5 && !isNaN(studNum1.value)&&!isNaN(studNum2.value)){				
						snum.innerHTML = "";			
					}else{
						snum.innerHTML = "Invalid Student Number";
						proceed = false;
					}
					
					if(lastName.value != "" && lastName.value.match(alphaExp)){				
						lname.innerHTML = "";			
					}else{
						lname.innerHTML = "Invalid Last Name";
						proceed = false;
					}
					
					if(middleName.value.match(alphaExp)){				
						mname.innerHTML = "";			
					}else{
						mname.innerHTML = "Invalid Middle Name";
						proceed = false;
					}
					
					if(firstName.value != "" && firstName.value.match(alphaExp)){				
						fname.innerHTML = "";			
					}else{
						fname.innerHTML = "Invalid First Name";
						proceed = false;
					}
					
					
					if(bdDate.value != "" && !isNaN(bdDate.value) && bdDate.value>0 && bdDate.value<=31){				
						bday.innerHTML = "";			
					}else{
						bday.innerHTML = "Invalid Birth Date";
						proceed = false;
					}
					
			
					
					if(gender[0].checked||gender[1].checked){				
						gnder.innerHTML = "";			
					}else{
						gnder.innerHTML = "Please select one";
						proceed = false;
					}
					
					if(civilStatus[0].checked||civilStatus[1].checked||civilStatus[2].checked){				
						cvilStatus.innerHTML = "";			
					}else{
						cvilStatus.innerHTML = "Please select one";
						proceed = false;
					}
					
					if(lastSchoolAttended.value!=""){				
						lstSchoolAttended.innerHTML = "";			
					}else{
						lstSchoolAttended.innerHTML = "Invalid input";
						proceed = false;
					}
					
					if(hSchool[0].checked||hSchool[1].checked){				
						htype.innerHTML = "";			
					}else{
						htype.innerHTML = "Please select one";
						proceed = false;
					}
					
					if(religion.value!=""&&religion.value.match(alphaExp)){				
						rligion.innerHTML = "";			
					}else{
						rligion.innerHTML = "Invalid input";
						proceed = false;
					}
					
					
					if(homeAddress.value!=""){				
						hmeAddress.innerHTML = "";			
					}else{
						hmeAddress.innerHTML = "Invalid input";
						proceed = false;
					}
					
					
					if(classification.value!="" && classification.value.match(alphaExp)){				
						clssification.innerHTML = "";			
					}else{
						clssification.innerHTML = "Invalid classification";
						proceed = false;
					}
					
					if(scholarships.value.match(stringInput)){				
						schlarships.innerHTML = "";			
					}else{
						schlarships.innerHTML = "Invalid input";
						proceed = false;
					}
										
					if(stfapBracket[0].checked||stfapBracket[1].checked||stfapBracket[2].checked||stfapBracket[3].checked||stfapBracket[4].checked||stfapBracket[5].checked){				
						stfap.innerHTML = "";			
					}else{
						stfap.innerHTML = "Please select one";
						proceed = false;
					}
					
					
					
					if(allowance.value.match(numExp) && allowance.value!= ""){				
						allwance.innerHTML = "";			
					}else{
						allwance.innerHTML = "Invalid Allowance Input";
						proceed = false;
					}
					
					if(cellPhone.value.match(mobileNum) && cellPhone.value!= "" &&cellPhone.value.length<=15){				
						cp.innerHTML = "";			
					}else{
						cp.innerHTML = "Invalid Mobile Number";
						proceed = false;
					}
					
					if(email.value.match(emailExp) && email.value!=""){				
						emailadd.innerHTML = "";			
					}else{
						emailadd.innerHTML = "Invalid Email Address";
						proceed = false;
					}
					
					if(course.value.match(alphaExp) && course.value!= ""){				
						curse.innerHTML = "";			
					}else{
						curse.innerHTML = "Invalid Course Input";
						proceed = false;
					}

					
					
				}//end of with
				
				return proceed;
			}

function validateInformation1(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				var mobileNum = /^[0-9\+]{6,}$/;//ALL NUMBER CHECKING
				with(Form){
				if(fatherName.value.match(alphaExp)&&fatherName.value!=""){
						ftherName.innerHTML="";
						}else{
						ftherName.innerHTML="Invalid father name";
						proceed=false;
						}
						
						if(fatherLive[0].checked||fatherLive[1].checked){
						flive.innerHTML="";
						}else{
						flive.innerHTML="Please choose one";
						proceed=false;
						}
						
						
						if((fatherIncome.value.match(numExp)&&fatherIncome.value!="") || fatherIncome.value=="N/A" ){
						fincome.innerHTML="";
						}else{
						fincome.innerHTML="Invalid income input";
						proceed=false;
						}
						
						if((fatherMobile.value.match(mobileNum)&&fatherMobile.value.length<=15)||fatherMobile.value=="N/A" ){
						fcp.innerHTML="";
						}else{
						fcp.innerHTML="Invalid mobile number";
						proceed=false;
						}
						
						if(motherName.value.match(alphaExp)&&motherName.value!=""){
						mtherName.innerHTML="";
						}else{
						mtherName.innerHTML="Invalid mother name";
						proceed=false;
						}
						
						if(motherLive[0].checked||motherLive[1].checked){
						mlive.innerHTML="";
						}else{
						mlive.innerHTML="Please choose one";
						proceed=false;
						}
						
						
						if((motherIncome.value.match(numExp)&&motherIncome.value!="") || motherIncome.value=="N/A" ){
						mincome.innerHTML="";
						}else{
						mincome.innerHTML="Invalid income input";
						proceed=false;
						}
						
						if((motherMobile.value.match(mobileNum)&&motherMobile.value.length<=15)||fatherMobile.value=="N/A" ){
						mcp.innerHTML="";
						}else{
						mcp.innerHTML="Invalid mobile number";
						proceed=false;
						}					
				}
				return proceed;		
}
	
function validateInformation2(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				
				with(Form){
				
				if(parentStat[0].checked||parentStat[1].checked||parentStat[2].checked||parentStat[3].checked){
				stats.innerHTML="";
				}else{
				stats.innerHTML="Please choose one";
				proceed=false;
				}
				
				
				if(numBros.value.match(numExp)&&numBros.value.length<3){
				nb.innerHTML="";
				}else{
				nb.innerHTML="Invalid number of brothers input";
				proceed=false;
				}
				
				if(numSis.value.match(numExp)&&numSis.value.length<3){
				ns.innerHTML="";
				}else{
				ns.innerHTML="Invalid number of sisters input";
				proceed=false;
				}
				var ord=parseInt(numSis.value)+parseInt(numBros.value); 
				if(border.value.match(numExp)&&border.value.length<3&&(border.value<=ord+1)&&parseInt(border.value)>=1){
				bo.innerHTML="";
				}else{
				bo.innerHTML="Invalid birth order input";
				proceed=false;
				}					
				}
				return proceed;		
}		



function validateInformation3(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s\.]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				var mobileNum = /^[0-9\+]{6,}$/;//ALL NUMBER CHECKING
				with(Form){
				if(guardianName.value.match(alphaExp)&&guardianName.value!=""){
					gname.innerHTML="";
					}else{
					gname.innerHTML="Invalid guardian name";
					proceed=false;
					}
				
				if(guardianAddress.value!=""){
					gaddress.innerHTML="";
					}else{
					gaddress.innerHTML="Invalid guardian address";
					proceed=false;
					}
				
				if(guardianMobile.value.match(mobileNum)&&guardianMobile.value!="" && guardianMobile.value.length<=15){
					gcp.innerHTML="";
					}else{
					gcp.innerHTML="Invalid guardian mobile";
					proceed=false;
					}

				}					
				return proceed;		
				
}

function validateInformation4(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				with(Form){
				if(studNum1.value != ""&& studNum2.value != ""&& studNum1.value.length == 4 && studNum2.value.length == 5 && !isNaN(studNum1.value)&&!isNaN(studNum2.value)){				
						snum.innerHTML = "";			
					}else{
						snum.innerHTML = "Invalid Student Number";
						proceed = false;
					}
										
								
					if(dateCheckin[0].checked||dateCheckin[1].checked||dateCheckin[2].checked){				
						trm.innerHTML = "";			
					}else{
						trm.innerHTML = "Please select one";
						proceed = false;
					}
				
					if(chkDate.value.length<=2&&chkDate.value.match(numExp)&&chkDate.value>0 && chkDate.value<=31){				
						date.innerHTML = "";			
					}else{
						date.innerHTML = "Invalid Date";
						proceed = false;
					}
					
					if(roomNo.value.length!=0){				
						rn.innerHTML = "";			
					}else{
						rn.innerHTML = "Invalid Room Number";
						proceed = false;
					}

				}					
				return proceed;		
				}
				
				
function validateInformation5(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				with(Form){
				if(studNum1.value != ""&& studNum2.value != ""&& studNum1.value.length == 4 && studNum2.value.length == 5 && !isNaN(studNum1.value)&&!isNaN(studNum2.value)){				
						snum.innerHTML = "";			
					}else{
						snum.innerHTML = "Invalid Student Number";
						proceed = false;
					}
										
					if(dateReserved.value.length<=2&&dateReserved.value.match(numExp)&&dateReserved.value>0 && dateReserved.value<=31){				
						rdate.innerHTML = "";			
					}else{
						rdate.innerHTML = "Invalid Date";
						proceed = false;
					}
					
					if(orNumber.value.length==7&&orNumber.value.match(numExp)){				
						ornum.innerHTML = "";			
					}else{
						ornum.innerHTML = "Invalid Receipt Number";
						proceed = false;
					}
			
					if(amtReserved.value!=""&&amtReserved.value.match(numExp)){				
						amt.innerHTML = "";			
					}else{
						amt.innerHTML = "Invalid Amount";
						proceed = false;
					}

				}					
				return proceed;		
}

function validateInformation6(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				with(Form){
										
					if(keyDate.value.length<=2&&keyDate.value.match(numExp)&&keyDate.value>0 && keyDate.value<=31){				
						kdate.innerHTML = "";			
					}else{
						kdate.innerHTML = "Invalid Date";
						proceed = false;
					}
					
					
			
					if(keyAmt.value!=""&&keyAmt.value.match(numExp)){				
						kamt.innerHTML = "";			
					}else{
						kamt.innerHTML = "Invalid Amount";
						proceed = false;
					}

				}					
				return proceed;		
}


function validateInformation7(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				with(Form){
					if(studNum1.value != ""&& studNum2.value != ""&& studNum1.value.length == 4 && studNum2.value.length == 5 && !isNaN(studNum1.value)&&!isNaN(studNum2.value)){				
						snum.innerHTML = "";			
					}else{
						snum.innerHTML = "Invalid Student Number";
						proceed = false;
					}


					if(appTerm[0].checked||appTerm[1].checked||appTerm[2].checked){				
						term.innerHTML = "";			
					}else{
						term.innerHTML = "Please select one";
						proceed = false;
					}
					
					if(appOrno.value.match(numExp) && appOrno.value!= ""&&appOrno.value.length==7){				
						aporno.innerHTML = "";			
					}else{
						aporno.innerHTML = "Invalid OR number";
						proceed = false;
					}		

					if(appDate.value != "" && !isNaN(appDate.value) && appDate.value>0 && appDate.value<=31){				
						apdate.innerHTML = "";			
					}else{
						apdate.innerHTML = "Invalid Date";
						proceed = false;
					}					

				}					
				return proceed;		
}

function validateInformation8(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				with(Form){
					if(studNum1.value != ""&& studNum2.value != ""&& studNum1.value.length == 4 && studNum2.value.length == 5 && !isNaN(studNum1.value)&&!isNaN(studNum2.value)){				
						snum.innerHTML = "";			
					}else{
						snum.innerHTML = "Invalid Student Number";
						proceed = false;
					}

					if(paymentTerm[0].checked||paymentTerm[1].checked||paymentTerm[2].checked){				
						pterm.innerHTML = "";			
					}else{
						pterm.innerHTML = "Please select one";
						proceed = false;
					}
					
					if(payYear1.value<=payYear2.value){				
						covered.innerHTML = "";			
					}else{
						covered.innerHTML = "Invalid payment covered.";
						proceed = false;
					}
					
					if(paymentOrno.value.match(numExp) && paymentOrno.value!= ""&&paymentOrno.value.length==7){				
						pporno.innerHTML = "";			
					}else{
						pporno.innerHTML = "Invalid receipt number";
						proceed = false;
					}

					if(dormFee.value.match(numExp) && dormFee.value!= ""){				
						df.innerHTML = "";			
					}else{
						df.innerHTML = "Invalid Dorm Fee";
						proceed = false;
					}
			
					if(appFee.value.match(numExp) || appFee.value.length==0){				
						af.innerHTML = "";			
					}else{
						af.innerHTML = "Invalid Appliance Fee";
						proceed = false;
					}		
					
					if(transFee.value.match(numExp) || transFee.value.length==0){				
						tf.innerHTML = "";			
					}else{
						tf.innerHTML = "Invalid Transient Fee";
						proceed = false;
					}		
										

					if(paymentDate.value != "" && !isNaN(paymentDate.value) && paymentDate.value>0 && paymentDate.value<=31){				
						paydate.innerHTML = "";			
					}else{
						paydate.innerHTML = "Invalid Payment Date";
						proceed = false;
					}					

				}					
				return proceed;		
}

function validateInformation9(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;//EMAIL CHECKING
				var numExp = /^[0-9\.\,]+$/;//ALL NUMBER CHECKING
				with(Form){
					if(studNum1.value != ""&& studNum2.value != ""&& studNum1.value.length == 4 && studNum2.value.length == 5 && !isNaN(studNum1.value)&&!isNaN(studNum2.value)){				
						snum.innerHTML = "";			
					}else{
						snum.innerHTML = "Invalid Student Number";
						proceed = false;
					}
										
					if(violationDate.value != "" && !isNaN(violationDate.value) && violationDate.value>0 && violationDate.value<=31){				
						vdate.innerHTML = "";			
					}else{
						vdate.innerHTML = "Invalid Violation Date";
						proceed = false;
					}
						
					if(reportedDate.value != "" && !isNaN(reportedDate.value) && reportedDate.value>0 && reportedDate.value<=31){				
						rdate.innerHTML = "";			
					}else{
						rdate.innerHTML = "Invalid Report Date";
						proceed = false;
					}	

				}					
				return proceed;		
}
	

function setOptions(chosen, x)
{

if(x==1) var selbox = document.form1.course;


selbox.options.length = 0;
if (chosen == "Agriculture") {
  selbox.options[selbox.options.length] = new Option('BS Agriculture','BS Agriculture');
  selbox.options[selbox.options.length] = new Option('BS Agricultural Biotech','BS Agricultural Biotech');
  selbox.options[selbox.options.length] = new Option('BS Food Technology','BS Food Technology'); 
}
if (chosen == "Arts and Sciences") {
  selbox.options[selbox.options.length] = new Option('BA Communication Arts','BA Communication Arts');
  selbox.options[selbox.options.length] = new Option('BA Philosophy','BA Philosophy');
  selbox.options[selbox.options.length] = new Option('BA Sociology','BA Sociology');
  selbox.options[selbox.options.length] = new Option('BS Agricultural Chemistry','BS Agricultural Chemistry');
  selbox.options[selbox.options.length] = new Option('BS Applied Mathematics','BS Applied Mathematics');
  selbox.options[selbox.options.length] = new Option('BS Applied Physics','BS Applied Physics');
  selbox.options[selbox.options.length] = new Option('BS Biology','BS Biology');
  selbox.options[selbox.options.length] = new Option('BS Chemistry','BS Chemistry');
  selbox.options[selbox.options.length] = new Option('BS Computer Science','BS Computer Science');
  selbox.options[selbox.options.length] = new Option('BS Mathematics','BS Mathematics');
  selbox.options[selbox.options.length] = new Option('BS Mathematics and Science Teaching','BS Mathematics and Science Teaching');
  selbox.options[selbox.options.length] = new Option('BS Statistics','BS Statistics');
}
if (chosen == "Development Communication") {
  selbox.options[selbox.options.length] = new Option('BS Development Communication','BS Development Communication');
}
if (chosen == "Economics and Management") {
  selbox.options[selbox.options.length] = new Option('BS AgriBusiness Management','BS AgriBusiness Management');
  selbox.options[selbox.options.length] = new Option('BS Agricultural Economics','BS Agricultural Economics');
  selbox.options[selbox.options.length] = new Option('BS Economics','BS Economics');
}
if (chosen == "Engineering and Agro Industrial Technology") {
  selbox.options[selbox.options.length] = new Option('BS Agricultural Engineering','BS Agricultural Engineering');
  selbox.options[selbox.options.length] = new Option('BS Chemical Engineering','BS Chemical Engineering');
  selbox.options[selbox.options.length] = new Option('BS Civil Engineering','BS Civil Engineering');
  selbox.options[selbox.options.length] = new Option('BS Electrical Engineering','BS Electrical Engineering');
  selbox.options[selbox.options.length] = new Option('BS Industrial Engineering','BS Industrial Engineering');
}
if (chosen == "Forestry and Natural Resources") {
  selbox.options[selbox.options.length] = new Option('Certificate in Forestry','Certificate in Forestry');
  selbox.options[selbox.options.length] = new Option('BS Forestry','BS Forestry');
}
if (chosen == "Human Ecology") {
  selbox.options[selbox.options.length] = new Option('BS Human Ecology','BS Human Ecology');
  selbox.options[selbox.options.length] = new Option('BS Nutrition','BS Nutrition');
}
if (chosen == "Veterinary Medicine") {
  selbox.options[selbox.options.length] = new Option('D Veterinary Medicine','D Veterinary Medicine');
}
	}

function validateStudentNo(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s\.]{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				var numExp = /^[0-9]+$/;//ALL NUMBER CHECKING
				with(Form){
					if(searchNum.value != ""&& searchNum2.value != ""&& searchNum.value.length == 4 && searchNum2.value.length == 5 && !isNaN(searchNum.value)&&!isNaN(searchNum2.value)){				
						snum.innerHTML = "";			
					}else{
						snum.innerHTML = "Invalid Student Number";
						proceed = false;
					}			

				}					
				return proceed;		
}
	
function validateStudentName(Form){
				var proceed = true;
				var alphaExp = /^[a-zA-Z\s\-\']{2,}$/;//ALL LETTERS CHECKING WITH WHITE SPACE
				with(Form){
										
					if(FName.value.match(alphaExp)||FName.value==""){				
						fname.innerHTML = "";			
					}else{
						fname.innerHTML = "Invalid First Name";
						proceed = false;
					}
										
					if(LName.value.match(alphaExp)||LName.value==""){				
						lname.innerHTML = "";			
					}else{
						lname.innerHTML = "Invalid Last Name";
						proceed = false;
					}	
					

				}					
				return proceed;		
}
				
function check(){
	alert("Successfully added a resident");
	
}	